[dbo].[BAEOrderCategoryGetAllChildren]
SQLServer
>
iMIS1521GA
>
Stored Procedures
> dbo.BAEOrderCategoryGetAllChildren
Properties
Parameters
SQL Script
Uses
Properties
Property
Value
ANSI Nulls On
Quoted Identifier On
Parameters
Name
Data Type
Max Length (Bytes)
@OrderCategoryID
int
4
SQL Script
create
procedure
[dbo]
.
[BAEOrderCategoryGetAllChildren]
@OrderCategoryID
as
int
AS
SELECT
*
FROM
OrderCategory
AS
oc
JOIN
OrderCategoryParentLookup
AS
ocpl
ON
oc.OrderCategoryID
=
ocpl.OrderCategoryID
WHERE
ocpl.OrderCategoryParentID
=
@OrderCategoryID
;
GO
Uses
[dbo].[OrderCategory]
[dbo].[OrderCategoryParentLookup]
dbo